package com.site.util;

import org.hibernate.SessionFactory;
import org.hibernate.cfg.AnnotationConfiguration;


/**
 * 
 * @author Jun
 *
 */
public class HibernateUtil {

	private static SessionFactory sf;
	
	static{
		sf = new AnnotationConfiguration().configure().buildSessionFactory();
	}
	
	public static SessionFactory getSessionFactory() {
		return sf;
	}
}
